package com.common.help.test04;

public class Test2 {

	public static void main(String[] args) {
		Value v = new Value();
		Value v1 = new Value();
		v.i=v1.i= 100;
		System.out.println(v.equals(v1));
	}
}
class Value extends Object{
	int i;

	@Override
	public boolean equals(Object obj) {
		return i==((Value)obj).i;
	}
	
}